//
//  SATransferDetailModel.m
//  SAP
//
//  Created by 中矿科技有限公司 on 17/9/15.
//  Copyright © 2017年 中矿科技有限公司. All rights reserved.
//

#import "SATransferDetailModel.h"

@implementation SATransferDetailModel

+(SATransferDetailModel *)getTransferDetailfromData:(NSData *)data{
    NSDictionary *dict =[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    SATransferDetailModel *model =[[SATransferDetailModel alloc]init];
    if (![dict[@"result"] isKindOfClass:[NSDictionary class]]) {
        return model;
    }
    if (![dict[@"result"][@"data"] isKindOfClass:[NSDictionary class]]) {
        return model;
    }
    
    model =[SATransferDetailModel mj_objectWithKeyValues:dict[@"result"][@"data"]];
    
    
    return model;
}

+(NSDictionary *)getTransferDetailDictfromData:(NSData *)data{
    NSDictionary *dict =[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    NSDictionary *dict1 =[[NSDictionary alloc]init];
    if (![dict[@"result"] isKindOfClass:[NSDictionary class]]) {
        return dict1;
    }
    if (![dict[@"result"][@"data"] isKindOfClass:[NSDictionary class]]) {
        return dict1;
    }
    
    return dict[@"result"][@"data"];
    
    
    
}

+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             @"Id" : @"id",
             };
}


@end
